import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    component:()=>import('@/views'),
    redirect:'home',
    children:[
    {
      path:'home',
      component:()=>import('@/components/home'),
    },
    {
      path:'agent',
      component:()=>import('@/components/agent'),
    },
    {
      path:'category',
      component:()=>import('@/components/category'),
    },
    {
      path:'aboutOur',
      component:()=>import('@/components/aboutOur'),
    },
    {
      path:'list',
      component:()=>import('@/components/list'),
    },
    {
      path:'detail',
      component:()=>import('@/components/detail'),
    }
    ]
  }
  
]

const router = new VueRouter({
  routes
})

export default router
